package com.tony.blog.model.mapper;

import com.tony.blog.model.entity.ReplyEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Title: ReplyMapper
 * @Auther: 皮蛋布丁
 * @Date: 2021/09/10/11:23
 * @Description:
 */
public interface ReplyMapper {

    /**
    * @Description: insertSelective 插入回复信息
    * @Param: [reply]
    * @return: java.lang.Integer
    * @Author: 皮蛋布丁
    * @Date: 2021/9/10 11:26
    */
    Integer insertSelective(ReplyEntity reply);

    /**
    * @Description: selectByCommentId 获取评论的回复列表数据
    * @Param: [commentId]
    * @return: java.util.List<com.tony.blog.model.entity.ReplyEntity>
    * @Author: 皮蛋布丁
    * @Date: 2021/9/10 13:30
    */
    List<ReplyEntity> selectByCommentId(@Param("commentId") Integer commentId);
}
